 <script>

	$(function(){
 		$('#ajax-article-list>ul').find('li').hover(
				function(){
					$(this).css('box-shadow','0px 2px 8px 3px #ccc');
				},
				function(){
					$(this).css('box-shadow','');
				}
			
		);
 		$('#go-top').click(function(){
 			$('html, body').animate({scrollTop:0}, 'slow');
 			$('.side_right .con').hide();
 			return false;
 		}); 
 		$(window).scroll(function () {
 			if ($(window).scrollTop() > 500) {
 				$('.side_right .go-top').show();
 			}else{
 				$('.side_right .go-top').hide();
 			}
 		});
		
	});

function favor(goodsid){
    $.get("{:U('ajax/favor')}",{id:goodsid},function(json){
            showmsg(json.info);
    })    
}
function updateCart(){
	target = "{:U('Cart/updateCart')}";
	$.post(target).success(function(data){
		if(data.errno == 0){
			$('.cart-number').html(data.count);
		}
	});
}

<!--淘点金代码-->

(function(win,doc){
    var s = doc.createElement("script"), h = doc.getElementsByTagName("head")[0];
    if (!win.alimamatk_show) {
        s.charset = "utf8";
        s.async = true;
        s.src = "http://a.alimama.cn/tkapi.js";
        h.insertBefore(s, h.firstChild);
    };
    var o = {
        pid: "{:C('PID')}",/*推广单元ID，用于区分不同的推广渠道*/
        appkey: "{:C('APP_KEY')}",/*通过TOP平台申请的appkey，设置后引导成交会关联appkey*/
        unid: "",/*自定义统计字段*/
        type: "click" /* click 组件的入口标志 （使用click组件必设）*/
    };
    win.alimamatk_onload = win.alimamatk_onload || [];
    win.alimamatk_onload.push(o);
})(window,document);
</script>

<block name="script">
</block>




